package com.urea.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 客户信息对象 t_customer
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_customer")
@Data
@ToString
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 昵称 */
    @Excel(name = "昵称")
    @ApiModelProperty( "昵称")
    private String nickName;

    /** 头像 */
    @Excel(name = "头像")
    @ApiModelProperty( "头像")
    private String headImgUrl;

    /** 帐号 */
    @Excel(name = "帐号")
    @ApiModelProperty( "帐号")
    private String account;

    /** 用户open_id */
    @Excel(name = "用户open_id")
    @ApiModelProperty( "用户open_id")
    private String openId;

    /** 手机号 */
    @Excel(name = "手机号")
    @ApiModelProperty( "手机号")
    private String phone;

    /** 用户unionid */
    @Excel(name = "用户unionid")
    @ApiModelProperty( "用户unionid")
    private String unionid;

    /** 用户类型;0普通用户，1电子卡用户，2车队用户 */
    @Excel(name = "用户类型;0普通用户，1电子卡用户，2车队用户")
    @ApiModelProperty( "用户类型;0普通用户，1电子卡用户，2车队用户")
    private Integer userType;

    /** 密码 */
    @Excel(name = "密码")
    @ApiModelProperty( "密码")
    private String password;

    /** 车队名称 */
    @Excel(name = "车队名称")
    @ApiModelProperty( "车队名称")
    private String fleetName;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
}
